package com.zmn.plat.manager.utils;

/**
 * 消息队列常量
 *
 * @author nowind
 * @since 2017/9/20 11:52
 */
public class MqConsts {

    /**
     * 系统日志
     */
    public final static String MQ_SYSLOG_EXCHANGE = "exchange.zmn.syslog";
    public final static String MQ_SYSLOG_QUEUE = "queue.zmn.syslog";
    public final static String MQ_SYSLOG_ROUTINGKEY = "routingkey.zmn.syslog";

    /**
     * News索引更新
     */
    public final static String MQ_INDEX_NEWS_EXCHANGE = "exchange.zmn.news";
    public final static String MQ_INDEX_NEWS_QUEUE = "queue.zmn.news";
    public final static String MQ_INDEX_NEWS_ROUTINGKEY = "routingkey.zmn.news";

    /**
     * SProduct索引更新
     */
    public final static String MQ_INDEX_SPRODUCT_EXCHANGE = "exchange.zmn.sproduct";
    public final static String MQ_INDEX_SPRODUCT_QUEUE = "queue.zmn.sproduct";
    public final static String MQ_INDEX_SPRODUCT_ROUTINGKEY = "routingkey.zmn.sproduct";

    /** MQ中定义的执行方式 */
    /** 索引操作类型,写入文档 */
    public final static int INDEX_TYPE_ADD = 100;
    /** 索引操作类型,写入文档(批量) */
    public final static int INDEX_TYPE_ADD_BATCH = 101;
    /** 索引操作类型,更新文档 */
    public final static int INDEX_TYPE_UPDATE = 200;
    /** 索引操作类型,更新文档(批量) */
    public final static int INDEX_TYPE_UPDATE_BATCH = 201;
    /** 索引操作类型,更新主图 */
    public final static int INDEX_TYPE_UPDATE_IMGSRC = 210;
    /** 索引操作类型,更新状态 */
    public final static int INDEX_TYPE_UPDATE_STATUS = 220;
    /** 索引操作类型,更新状态(批量) */
    public final static int INDEX_TYPE_UPDATE_STATUS_BATCH = 221;
    /** 索引操作类型,更新排序 */
    public final static int INDEX_TYPE_UPDATE_SORT = 230;
    /** 索引操作类型,更新排序(批量) */
    public final static int INDEX_TYPE_UPDATE_SORT_BATCH = 231;
    /** 索引操作类型,更新浏览量 */
    public final static int INDEX_TYPE_UPDATE_VIEW = 232;
    /** 索引操作类型,更新浏览量(增量更新) */
    public final static int INDEX_TYPE_UPDATE_VIEW_INCR = 233;
    /** 索引操作类型,更新修改时间 */
    public final static int INDEX_TYPE_UPDATE_UPDATETIME = 240;
    /** 索引操作类型,删除文档 */
    public final static int INDEX_TYPE_DELETE = 300;
    /** 索引操作类型,删除文档(批量) */
    public final static int INDEX_TYPE_DELETE_BATCH = 301;

    /**
     * 描述：新增公司注册信息 tag
     **/
    public static final String COMPANY_ADD_SELF = "invoice_add_company_register_tag";

}
